package com.acoffee.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.Email;

/**
 * @author acoffee
 * @create 2021-11-18 15:49
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Validated
public class User {

    private String name;
    private int age;
    @Email(message = "邮箱格式不正确")
    private String telphone;
    private String sex;
}
